package com.trimps.wifi.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.trimps.wifi.pojo.phoneCompany;
import com.trimps.wifi.service.PhoneCompanyDataService;

@Controller
@RequestMapping(value = "data/")
public class PhoneCompanyDataController extends BaseController {
    private static final Logger logger = Logger.getLogger(PhoneCompanyDataController.class);

    @Autowired
    private PhoneCompanyDataService phoneCompanyDataService;
    
    /**
     * 获取手机品牌信息
     * @return
     */
    @RequestMapping(value = "getPhoneCompany", method = RequestMethod.POST)
    @ResponseBody
    public Map<String, Object> getPhoneCompany()  {
     // 返回用
        Map<String, Object> map = new HashMap<String, Object>();
        
        List<phoneCompany> lst = new ArrayList<phoneCompany>();
        lst = phoneCompanyDataService.getPhoneCompany();
        
        map.put("listInfo", lst);
        return map;
    }
    
    
}
